package com.zhuss.vent.db.dao.ext;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.vo.vent.vent.DetailVentTopicVo;
import com.zhuss.vent.db.dao.gen.VentTopicMapper;
import com.zhuss.vent.db.entity.VentTopic;

@Mapper
public interface VentTopicDao extends VentTopicMapper {
	
	void create(VentTopic record);
	
	int delete(VentTopic record);
	
	int deleteByParent(VentTopic record);
	
	void deleteBatch(@Param("ventTopicIdList") List<Long> ventTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	void deleteByParentBatch(@Param("ventTopicIdList") List<Long> ventTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	List<VentTopic> listAll(@Param("area") Integer area, @Param("ventId") Long ventId);
	
	DetailVentTopicVo detail(@Param("ventTopicId") Long ventTopicId);
	
	List<Long> listSon(@Param("ventTopicIdList") List<Long> ventTopicIdList);

	List<DetailVentTopicVo> listTopic(@Param("ventId") Long ventId, @Param("parent") Long parent);
    
}